import request from '@/utils/request'

// 查询活动内容列表
export function listActivitys(query) {
  return request({
    url: '/system/activitys/list',
    method: 'get',
    params: query
  })
}

// 查询活动内容详细
export function getActivitys(id) {
  return request({
    url: '/system/activitys/' + id,
    method: 'get'
  })
}

// 新增活动内容
export function addActivitys(data) {
  return request({
    url: '/system/activitys',
    method: 'post',
    data: data
  })
}

// 修改活动内容
export function updateActivitys(data) {
  return request({
    url: '/system/activitys',
    method: 'put',
    data: data
  })
}

// 删除活动内容
export function delActivitys(id) {
  return request({
    url: '/system/activitys/' + id,
    method: 'delete'
  })
}
